package com.jshoperxms.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Objects;

/**
 * Created by sdywcd on 2019/12/15.
 * Des:
 */
@Entity
@Table(name = "sys_pay_rd_t", schema = "jshoperxms", catalog = "")
public class SysPayRdT {
    private String id;
    private String memberid;
    private BigDecimal amount;
    private BigInteger createtime;
    private BigInteger updatetime;
    private String status;
    private int versiont;
    private String outtradeno;
    private String tradetype;
    private String bustype;
    private String note;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "MEMBERID", nullable = false, length = 25)
    public String getMemberid() {
        return memberid;
    }

    public void setMemberid(String memberid) {
        this.memberid = memberid;
    }

    @Basic
    @Column(name = "AMOUNT", nullable = false, precision = 2)
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public BigInteger getCreatetime() {
        return createtime;
    }

    public void setCreatetime(BigInteger createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public BigInteger getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(BigInteger updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "OUTTRADENO", nullable = false, length = 45)
    public String getOuttradeno() {
        return outtradeno;
    }

    public void setOuttradeno(String outtradeno) {
        this.outtradeno = outtradeno;
    }

    @Basic
    @Column(name = "TRADETYPE", nullable = false, length = 45)
    public String getTradetype() {
        return tradetype;
    }

    public void setTradetype(String tradetype) {
        this.tradetype = tradetype;
    }

    @Basic
    @Column(name = "BUSTYPE", nullable = false, length = 45)
    public String getBustype() {
        return bustype;
    }

    public void setBustype(String bustype) {
        this.bustype = bustype;
    }

    @Basic
    @Column(name = "NOTE", nullable = false, length = 100)
    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysPayRdT sysPayRdT = (SysPayRdT) o;
        return versiont == sysPayRdT.versiont &&
                Objects.equals(id, sysPayRdT.id) &&
                Objects.equals(memberid, sysPayRdT.memberid) &&
                Objects.equals(amount, sysPayRdT.amount) &&
                Objects.equals(createtime, sysPayRdT.createtime) &&
                Objects.equals(updatetime, sysPayRdT.updatetime) &&
                Objects.equals(status, sysPayRdT.status) &&
                Objects.equals(outtradeno, sysPayRdT.outtradeno) &&
                Objects.equals(tradetype, sysPayRdT.tradetype) &&
                Objects.equals(bustype, sysPayRdT.bustype) &&
                Objects.equals(note, sysPayRdT.note);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, memberid, amount, createtime, updatetime, status, versiont, outtradeno, tradetype, bustype, note);
    }
}
